<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        let p1 = Promise.resolve('aaa');
        p1.then(res=>{
            console.log(res);
        });
        

        let p2 = Promise.reject('aaa');
        p2.then(res=>{
            console.log(res);
        }).caches(err=>{
            console.log(err);
        });

    </script>
</head>
<body>
    
</body>
</html>